<template>
  <router-view />
</template>

<script lang="ts" setup>
import { onMounted }       from 'vue';
import { useConfigStore }  from 'stores/configStore';
import { useProjectStore } from 'stores/projectStore';
import { useUserStore } from 'stores/userStore';
import { useI18n }         from 'vue-i18n';
import { LocalStorage }    from 'quasar';
const { locale } = useI18n({ useScope: 'global' });
onMounted(async () =>
{
  await useConfigStore().getConfig();
  await useProjectStore().getProject();
  await useUserStore().getUser();
  locale.value = LocalStorage.getItem('locale') || 'zh-CN';
});

</script>
